import Vue from 'vue'
import Router from 'vue-router'

import About from '../views/About.vue'
import Home from '../views/Home.vue'
Vue.use(Router)
export function createRouter() {
    return new Router({
        mode: 'history',
        routes: [
            {
                path: '/home',
                name: 'home',
                component: Home
            },
            {
                path: '/about',
                name: 'about',
                component: About
            }
        ]
    })
}